package com.rookie.rookiemeeting.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rookie.rookiemeeting.config.MybatisRedisCache;
import com.rookie.rookiemeeting.dto.MypassDto;
import com.rookie.rookiemeeting.entity.Mypass;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author henry-ong
 * @since 2023-12-23
 */
@Mapper
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface MypassMapper extends BaseMapper<Mypass> {
    List<MypassDto> getCurrentOne(String id);

    Integer addTestInfo(Mypass mypass);

    List<Mypass> queryAll();

    Page<MypassDto> queryTestInfoByEmployee(Page<MypassDto> page, @Param("employeename") String employeename);
}
